package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

@Entity
@Table(name = "t_sys_should_sign_holiday", schema = "oa", catalog = "")
public class ShouldSignHolidayEntity extends BaseEntity {

    private String shouldDate;
    private int holidayFlag;
    private int frontFlag;
    private String createUserId;
    private int shouldSignIn;


    public String getShouldDate() {
        return shouldDate;
    }

    public void setShouldDate(String shouldDate) {
        this.shouldDate = shouldDate;
    }

    public int getHolidayFlag() {
        return holidayFlag;
    }

    public void setHolidayFlag(int holidayFlag) {
        this.holidayFlag = holidayFlag;
    }

    public int getFrontFlag() {
        return frontFlag;
    }

    public void setFrontFlag(int frontFlag) {
        this.frontFlag = frontFlag;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public int getShouldSignIn() {
        return shouldSignIn;
    }

    public void setShouldSignIn(int shouldSignIn) {
        this.shouldSignIn = shouldSignIn;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("SHOULD_DATE", getShouldDate());
        obj.put("HOLIDAY_FLAG", getHolidayFlag());
        obj.put("FRONT_FLAG", getFrontFlag());
        obj.put("SHOULD_SIGN_IN", getShouldSignIn());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_should_holiday";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("SHOULD_DATE", "shouldDate");
        obj.put("HOLIDAY_FLAG", "holidayFlag");
        obj.put("FRONT_FLAG", "frontFlag");
        obj.put("SHOULD_SIGN_IN", "shouldSignIn");
        return obj;
    }
}
